local wu__fubi = fk.CreateSkill {
  name = "wu__fubi",
  tags = {Skill.Compulsory},  -- 锁定技标签：强制生效，无需手动发动
}

Fk:loadTranslationTable{
  ["wu__fubi"] = "伏笔",
  [":wu__fubi"] = "锁定技，你跳过摸牌阶段；结束阶段，你摸两张牌。",
}

wu__fubi:addEffect(fk.EventPhaseChanging, {
  anim_type = "negative",
  can_trigger = function(self, event, target, player, data)
    return target == player and player:hasSkill(wu__fubi.name) and data.phase == Player.Draw and not data.skipped
  end,
  on_use = function (self, event, target, player, data)
    data.skipped = true
  end,
})


wu__fubi:addEffect(fk.EventPhaseStart, {
  anim_type = "drawcard",
  can_trigger = function(self, event, target, player, data)
    return target == player and player:hasSkill(wu__fubi.name) and player.phase == Player.Finish
  end,
  on_use = function(self, event, target, player, data)
      player:drawCards(2, wu__fubi.name)
  end,
})

return wu__fubi